package com.encyclopedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.encyclopedia.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-04-27 16:33
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 查询所有用户
     *
     * @return
     */
    List<User> selectlist();

    User selectUserById(Integer id);

    int UpdateUser(User user);

    Integer updatePassword(User user);


}
